import request from '@/utils/request'
// -------------任务附件------------
const BASE = "/service/taskFile"

// 获取任务附件列表
export const getServiceTaskFileListApi = (params) => {
    return request({
        url: `${BASE}/list`,
        method: 'get',
        params
    })
}

// 删除任务附件
export const removeServiceTaskFileApi = (data) => {
    return request({
        url: `${BASE}/remove`,
        method: 'DELETE',
        data
    })
}

// 重命名附件 /service/taskFile/updateFileName
export const updateFileNameTaskFileApi = (data) => {
    return request({
        url: `${BASE}/updateFileName?id=${data.id}&name=${data.name}`,
        method: 'put',
    })
}